package univer.oko.database.rmi;

import java.util.HashMap;

/**
 * Created by Sergey Kharlamov.
 * Date: 07.10.2006
 * Time: 21:44:44
 */
public class StatusCommentsManager {

    private static StatusCommentsManager instance = new StatusCommentsManager();

    public static StatusCommentsManager instance() {
        return instance;
    }

    private HashMap<StatusCommentsConstants, String> map;

    private StatusCommentsManager() {
        map = new HashMap<StatusCommentsConstants, String>(10);
    }

    public void setStatusComments(StatusCommentsConstants con, String str) {
        map.put(con, str);
    }

    public String getStatusComments(StatusCommentsConstants con) {

        if (!map.containsKey(con)) {
            return "";
        }
        return map.get(con);

    }
}
